import React from 'react'
import golbalContext from '../store'
export default class Car extends React.Component {
	static contextType?: React.Context<any> | undefined = golbalContext
	render() {
		return (
			<div>
				<h1>Car</h1>
				<div>{this.context.list.map((v, i) => {
					return <div key={i}>
						<h3>{ v.name }</h3>
						<h4>{ v.age }</h4>
					</div>
				})}</div>

			
			</div>
		)
	}
}